package top.wardyan.base.config;

import java.awt.Dimension;
import java.awt.Toolkit;

import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.widgets.Display;

/**
 * 一些开发中的常量
 * @author ward
 * 2019年2月16日
 */
public class Const {

	public static final Display display = Display.getCurrent();
	
	
	/** 以下是定义好的颜色 **/
	/** 红色 **/
	public static final Color COLOR_RED 		= new Color(display,255,0,0);
	/** 绿色 **/
	public static final Color COLOR_GREEN 	= new Color(display, 0, 255, 00);
	/** 蓝色 **/
	public static final Color COLOR_BLUE 	= new Color(display, 0, 0, 255);
	/** 天蓝色 **/
	public static final Color COLOR_SKYBLUE	= new Color(display, 0, 255, 255);
	/** 黄色 **/
	public static final Color COLOR_YELLOW	= new Color(display, 255, 255, 0);
	/** 白色 **/
	public static final Color COLOR_WHITE 	= new Color(display, 255, 255, 255);
	/** 黑色 **/
	public static final Color COLOR_BLACK 	= new Color(display, 0, 0, 0);
	/** 用于屏幕上字体显示的背景颜色 **/
	public static final Color COLOR_ALPHA 	= new Color(display, 255, 255, 255, 0);
	
	public static final Color COLOR_GRAY 	= new Color(display, 240, 240, 240);
	
	/** 注意, 以下获取到的屏幕大小将是多屏的总大小 **/
	private static final Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
	/** 电脑屏幕宽度 **/
	public static final Integer SCREENWIDTH = (int)screenSize.getWidth();
	/** 电脑屏幕高度 **/
	public static final Integer SCREENHEIGHT = (int)screenSize.getHeight();
	
	//public static final Rectangle FULLSCREEN = display.getPrimaryMonitor().getClientArea();
	
	
	public static final Font FONT_COMMON_24 = new Font(display,"新宋体", 24, SWT.NORMAL);
	/** (首页)标题所用字体 **/
	//public static final Font FONT_TITLE = new Font(display, SIM.FONT_FAMILY, 32, SWT.NONE);
	public static final Font FONT_TITLE = new Font(display,"新宋体", 32, SWT.NORMAL);
	
	public static final Font FONT_POETRY = new Font(display,"隶书", 24, SWT.NORMAL);
	
	/** 新宋体, 40 **/
	public static final Font FONT_H1 = new Font(display,"新宋体", 40, SWT.NORMAL);
	/** 新宋体, 36 **/
	public static final Font FONT_H2 = new Font(display,"新宋体", 36, SWT.NORMAL);
	/** 新宋体, 32 **/
	public static final Font FONT_H3 = new Font(display,"新宋体", 32, SWT.NORMAL);
	/** 新宋体, 28 **/
	public static final Font FONT_H4 = new Font(display,"新宋体", 28, SWT.NORMAL);
	/** 新宋体, 24 **/
	public static final Font FONT_H5 = new Font(display,"新宋体", 24, SWT.NORMAL);
	/** 新宋体, 20 **/
	public static final Font FONT_H6 = new Font(display,"新宋体", 20, SWT.NORMAL);
	/** 新宋体, 16 **/
	public static final Font FONT_H7 = new Font(display,"新宋体", 16, SWT.NORMAL);
	/** 新宋体, 12 **/
	public static final Font FONT_H8 = new Font(display,"新宋体", 12, SWT.NORMAL);
	/** 新宋体, 9 **/
	public static final Font FONT_H9 = new Font(display,"新宋体", 9, SWT.NORMAL);
	/** 新宋体, 8 **/
	public static final Font FONT_H10 = new Font(display,"新宋体", 8, SWT.NORMAL);
	
	
	
	
	
}
